<?php

namespace plugin\tuPay\app\controller;

use plugin\tuPay\app\services\ConfigService;
use support\Request;

class IndexController
{

    /**
     * 支持的支付类型
     * @return void
     */
    public function payType(){
        $payType = ConfigService::getPayConfig();
        return json(['code'=>0,'msg'=>'ok','data'=>$payType]);
    }


    public function index()
    {
        return view('index/index', ['name' => 'tuPay']);
    }

}
